<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/MesquiteTemplate.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />


<!-- InstanceBeginEditable name="doctitle" -->
<title>Charts</title>
<!-- InstanceEndEditable -->

<![endif]--><!--[if IE]>
<style type="text/css"> 
/* place css fixes for all versions of IE in this conditional comment */
.thrColFixHdr #sidebar2, .thrColFixHdr #sidebar1 { padding-top: 30px; }
.thrColFixHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->

<style type="text/css">
<!--
-->
</style>
<link href="CSS/mesquitePackage.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryCollapsiblePanel.css" rel="stylesheet" type="text/css" />

<script src="SpryAssets/SpryCollapsiblePanel.js" type="text/javascript"></script>
<script type="text/javascript" src="SpryAssets/SpryURLUtils.js"></script>
<script type="text/javascript" src="javascript/mesquite.js"></script>

<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>

<body bgcolor="#ffffff" class="thrColFixHdr" >

<div id="container">
  <div id="header">
    <table width="100%" border="0" cellpadding="4">
  <tr>
    <td width="51%"><strong id="PackageTitle">Mesquite</strong></td>
    <td width="33%" align="right"><div id="subtitle"><!-- InstanceBeginEditable name="subtitle" -->Charts<!-- InstanceEndEditable --></div></td>
    <td width="2%">&nbsp;</td>
    <td width="14%">Version 3.81<br />
      April 2023<br /></td>
  </tr>
</table>

</div>
  
  
<div id="sidebar1">
  
  
  
  
  <div id="NonCollapsiblePanel">
    <a href="javascript:pageLink('http://www.mesquiteproject.org')">Mesquite Website Home</a>
  </div>
  <div id="NonCollapsiblePanel">
    <a href="javascript:pageLink('home.html')">Introduction</a>
  </div>
  <div id="NonCollapsiblePanel">
    <a href="javascript:pageLink('Installation.html')">Download & Installation</a>
  </div>
  <div id="NonCollapsiblePanel">
    <a href="javascript:pageLink('History%20of%20New%20Features.html')">Recent Changes</a>
  </div>

  <div id="OverviewOfMesquitePanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Overview of Mesquite ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('What%20Mesquite%20does.html');">What Mesquite Does</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Mesquites%20Features.html');">List of Features</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Development%20Team.html');">Development Team</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Contact%20Us.html');">Contact Us</a></td></tr>
		</table>
    </div>
  </div>
  <div id="GettingStartedPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Getting Started ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Installation.html');">Download and Installation</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Additional%20Mesquite%20Packages.html');">Additional Packages</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Beginning%20Mesquite.html');">Beginning Mesquite</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Example%20Files.html');">Example Files</a></td></tr>
		</table>
    </div>
  </div>
  <div id="BasicMesquiteOperationPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Basic  Operations ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Files.html');">Files</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Menus.html');">Menus</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Windows.html');">Windows</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Charts.html');">Charts</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Selection.html');">Selection</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Modules.html');">Modules</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Simplifying%20the%20Interface.html');">Simplifying Mesquite</a></td></tr>
		</table>
    </div>
  </div>
  <div id="TaxaTreesCharactersPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Taxa, Trees, Characters ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Characters%20&%20Matrices.html');">Characters &amp; Matrices</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Taxa.html');">Taxa</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Trees.html');">Trees</a></td></tr>
		</table>
    </div>
  </div>
  <div id="AnalysesPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Analyses ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Character%20Evolution.html');">Character Evolution</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Align.html');">Sequence Alignment</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Analyzing%20Molecular%20Data.html');">Molecular Data</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Diversification.html');">Diversification</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Gene%20Trees.html');">Gene Trees</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Simulations%20&%20Randomizations.html');">Simulations &amp; Randomizations</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Analyzing%20Continuous%20Characters.html');">Continuous Characters</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Studies%20of%20Tree%20Topology.html');">Studies of Tree Topology</a></td></tr>
		</table>
    </div>
  </div>
  <div id="WorkflowsPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Workflows ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Managing%20Molecular%20Data.html');">Managing Molecular Data</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Managing%20Continuous%20Data.html');">Managing Continuous Data</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Interactions%20with%20Other%20Programs.html');">Interactions with other programs</a></td></tr>
		</table>
    </div>
  </div>
  <div id="GettingHelpPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Getting Help ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Learning%20how%20to%20use%20Mesquite.html');">Learning Mesquite</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Simplifying%20the%20Interface.html');">Simplifying Mesquite</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Bugs%20and%20Troubleshooting.html');">Bugs &amp; Troubleshooting</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Getting%20Help.html');">Getting Help</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Suggesting%20New%20Features.html');">Your Suggestions</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Glossary.html');">Glossary</a></td></tr>
  			<tr><td><a href="javascript:pageLink('FAQ.html');">FAQ</a></td></tr>
		</table>
    </div>
  </div>
  <div id="TechnicalDetailsPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Technical Details ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('How%20Mesquite%20Works.html');">How Mesquite Works</a></td></tr>
  			<tr><td><a href="javascript:pageLink('MesquiteLogSupport.html');">Log & Support Files</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Scripts%20&%20Macros.html');">Scripts &amp; Macros</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Source%20Code.html');">Source Code</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Developers%20Documentation.html');">Developer's Documentation</a></td></tr>
		</table>
    </div>
  </div>
  <div id="HistoryPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">History ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('History%20of%20Mesquite.html');">History of Mesquite</a></td></tr>
  			<tr><td><a href="javascript:pageLink('whyMesquite.html');">Why Mesquite?</a></td></tr>
  			<tr><td><a href="javascript:pageLink('History%20of%20New%20Features.html');">New Features & Bug List</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Release%20Dates.html');">Release Dates</a></td></tr>
		</table>
    </div>
  </div>
  <div id="PublishingResultsPanel" class="CollapsiblePanel">
    <div class="CollapsiblePanelTab" tabindex="0">Publishing Results ˇ</div>
    <div class="CollapsiblePanelContent" style="display: block">
  		<table width="100%" border="0" cellpadding="1">
  			<tr><td><a href="javascript:pageLink('Documenting%20Your%20Work.html');">Documenting your work</a></td></tr>
  			<tr><td><a href="javascript:pageLink('How%20to%20Cite%20Mesquite.html');">Citing Mesquite</a></td></tr>
  			<tr><td><a href="javascript:pageLink('Publishing%20Results.html');">Publishing results</a></td></tr>
		</table>
    </div>
  </div>

  <div id="NonCollapsiblePanel">
    <a href="javascript:pageLink('Acknowledgements.html')">Acknowledgments</a>
  </div>

<h3>&nbsp;</h3>
  <!-- end #sidebar1 --></div>

  <div id="mainContent">
    
<!-- InstanceBeginEditable name="content" -->
    
    
<h1 id="toc0"><a name="Mesquite's Charts"></a>Mesquite's Charts</h1>
 Charts compile and display values for a series of objects or items, whether taxa, trees, characters, or matrices. Mesquite has two primary styles of charts:<br />
<ul><li>Bar &amp; Line Charts - a bar or linechart summarizing values for each of many objects; includes histograms to show frequencies of values. (Called &quot;Histogram&quot; in earlier versions of Mesquite.)</li><li>Scattergram - a plot showing each object's value in two variables</li></ul><br />
Most of Mesquite's charts are available through the first few submenus of the Analysis menu.<br />
<br />
We suspect the greatest challenge to the user will be learning what chart to choose and how to set it up. For instance, how can one create a chart summarizing the estimated rate of a character's evolution according to each of a series of trees? Does one choose New Bar &amp; Line Chart For&gt;Characters because the value concerns a character? No, one chooses New Bar &amp; Line Chart For&gt;Trees because the numerous objects being summarized are trees, as the question concerns just one character but many trees. For each tree, what is being calculated is a value that relates to a character.<br />
<br />
<h3 id="toc1"><a name="Mesquite's Charts--Contents"></a>Contents</h3>
 <ul><li><a  href="Charts.html#wizard">Chart Wizard</a></li><li><a  href="Charts.html#selection">Selection of objects in charts</a></li><li><a  href="Charts.html#recalc">Auto-recalculation</a></li><li><a  href="Charts.html#histogram">Bar &amp; Line Charts</a><ul><li>Example: <a  href="Charts.html#robustness">Robustness of estimated bias in character evolution</a></li><li>Example: <a  href="Charts.html#gcbias">Compositional bias along a sequence</a></li><li><a  href="Charts.html#optionsH">Calculating and formatting options</a></li></ul></li></ul><br />
<ul><li><a  href="Charts.html#scattergrams">Scattergrams</a><ul><li>Example: <a  href="Charts.html#cva">Canonical Variates Analysis</a></li><li>Example: <a  href="Charts.html#varhydrophob">Correlation between variability and hydrophobicity</a></li><li><a  href="Charts.html#optionsS">Calculating and formatting options</a></li></ul></li></ul><br />
<h2 id="toc2"><a name="Mesquite's Charts-Chart Wizard"></a><a name="wizard"></a>Chart Wizard</h2>
 The first item in the Analysis window, Chart Wizard, helps you make charts. It asks you a series of questions to determine what type of chart you want. We provide this because it is sometimes difficult to decide how to start building a chart. Alternatively, you can use the New Bar &amp; Line Chart for and New Scattergram for submenus to build a chart.<br />
<br />
<h2 id="toc3"><a name="Mesquite's Charts-Selection of objects in charts"></a><a name="selection"></a>Selection of objects in charts</h2>
 Most bar &amp; line charts and scattergrams depict the values of objects— characters, taxa, trees — that can be selected. If you select these objects elsewhere in Mesquite, for example by selecting a column (character) in the Character Matrix Editor, then this selected objects will be highlighted in the chart. You can select the objects directly in the chart by clicking and dragging with the arrow cursor.<br />
<br />
When objects are selected in the chart, and Copy is selected, then a list of the selected data points is copied to the clipboard. Otherwise if no objects are selected, then Copy puts the list of all data points into the clipboard.<br />
<br />
<h2 id="toc4"><a name="Mesquite's Charts-Auto-recalculation"></a><a name="recalc"></a>Auto-recalculation</h2>
 By default, charts are recalculated whenever Mesquite detects that the data or assumptions underlying the chart have changed. If the chart calculation takes a long time, then this can lead to many delays if you need to make many changes in the data or assumptions. You can temporarily turn off the automatic chart recalculation by deselecting the Auto-recalculate menu item in the Chart or Scattergram menu. You can also request to Force Recalculation in the Chart menu.<br />
<br />
<h2 id="toc5"><a name="Mesquite's Charts-Bar &amp; Line Charts"></a><a name="histograms"></a>Bar &amp; Line Charts</h2>
 The bar &amp; line charts available via the Analysis menu are:<br />
<ul><li>Characters — the items whose values are summarized are characters. These could be all of the characters of a matrix, or a series of simulated or randomized characters.</li><li>Character Matrices — the items whose values are summarized are whole character matrices. These could be all of the matrices stored in a file, or a series of simulated or randomized matrices.</li><li>Taxa — the items whose values are summarized are taxa within a taxa block.</li><li>Tree blocks —the items whose values are summarized are blocks of multiple trees. That is, each item is a block of several trees. These could be all of the tree blocks stored in a file, or a series of simulated or randomized tree blocks.</li><li>Trees — the items whose values are summarized are trees. These could be all of the trees within a tree block, or a series of simulated or randomized trees.</li></ul><br />
<h3 id="toc6"><a name="Mesquite's Charts-Bar &amp; Line Charts-Tables as output"></a>Tables as output</h3>
 In addition to the graphical chart, you can obtain a text table representation of the chart in several ways:<br />
<ul><li>Select Copy in the Edit menu of the chart to copy a list of point values to the clipboard; you can then copy it in to your favorite text or spreadsheet program</li><li>Select Save Window as Text from the File menu to save a full text representation of the chart</li><li>If Record Table to File in the Chart menu is selected, then a text file of the results will be saved each time a chart is recalculated. This is particularly useful for some calculations that result in more than just a single value per item charted; in this case you will be asked when you start the chart whether you want to save the record.</li></ul><br />
<h3 id="toc7"><a name="Mesquite's Charts-Bar &amp; Line Charts-Examples"></a>Examples</h3>
 <a name="robustness"></a><em>Robustness of estimated bias in character evolution</em> — Suppose a biologist estimated the bias in the rates of gains versus losses in a character's evolution on a given tree. How might the estimate depend on accuracy of the tree's branch lengths? To answer this, one could see how the estimate varies when noise is added to the branch lengths of the given tree. First have a tree window available with the given tree showing. Then:<br />
<ul><li>Select the menu item Analysis&gt;New Bar &amp; Line Chart For&gt;Trees</li><li>A dialog box with heading &quot;Source of trees (Trees chart)&quot; should appear. ChooseRandomly Modify Current Tree.</li><li>In the dialog box &quot;Random modifier of tree&quot;, choose Add Noise to branch lengths. You will then be asked to indicate the variance of the noise, and the number of trees to chart.</li><li>In the dialog box &quot;Value to calculate for trees&quot; should appear. If you see &quot;Forward/Backward Rates&quot; as a choice under Tree Value using character, choose it. If you don't see Forward/Backward Rates, choose Tree Value using character, because the desired value depends on the tree and a character. and in the next dialog box &quot;Value to calculate for tree with character&quot;, ask to show secondary choices then chooseForward/Backward rates</li><li>In the dialog box &quot;Source of characters (for Forward/Backward rates)&quot;, choose Stored Characters (presuming you already have your character of interest entered in a data matrix). If you have &quot;Use Stored Characters/Matrices by Default&quot; turned on in the Defaults submenu if the File menu, Mesquite won't ask you and will simply use Stored Characters.</li><li>You may be asked other questions, depending on whether you data file includes multiple matrices. Then, a chart should appear to answer your query. (The calculation may take while.)</li></ul><br />
<a name="gcbias"></a><em>Compositional bias along a sequence</em> — A biologist with DNA sequence data wants to see how the relative frequences of A, C, G and T vary along the length of the sequence. To see this:<br />
<ul><li>Select the menu item Analysis&gt;New Bar &amp; Line Chart For&gt;Characters</li><li>In the dialog asking for a source of characters, choose Stored Characters (assuming you have your DNA matrix in the file). If you have &quot;Use Stored Characters/Matrices by Default&quot; turned on in the Defaults submenu if the File menu, Mesquite won't ask you and will simply use Stored Characters.</li><li>In the dialog &quot;Value to calculate for characters (for Character Values Chart)&quot;, ask to show secondary choices then choose Character Compositional Bias</li><li>The chart may initially appear uninteresting, but adjust as follows:<ul><li>Select Chart&gt;Orientation&gt;Values (Y) by Items (X) to cause the chart to show the characters lined up, in sequence, along the X axis.</li><li>The chart will probably be set to automatically group into categories along the X axis. Try a moving window analysis by selecting Chart&gt;Grouping on X&gt;Moving Window..., and indicating the width of the moving window and the offset between adjacent window positions. The defaults are 5 and 1 respectively, but you could also try 10 and 2 to smooth further.</li></ul></li></ul><div style="text-align: center"><img src="files/gcSequence.jpg" alt="gcSequence.jpg" title="gcSequence.jpg" /></div>Above is an example of how the chart may appear. Some sections of the chart are red because those characters were indicated as belonging to a distinct <a  href="Characters%20%26%20Matrices.html#groups">character group</a> or partition. In this chart, the introns (marked in red) have a stronger AT bias.<br />
<br />
<h3 id="toc8"><a name="Mesquite's Charts-Bar &amp; Line Charts-Calculation and Formatting options"></a><a name="optionsH"></a>Calculation and Formatting options</h3>
 The following menu items can be found in the Chart menu:<br />
<ul><li>Orientation<ul><li>Number of Items (Y) by Values (X) — This is the typical &quot;histogram&quot; where the vertical axis shows how many items have the various values arrayed along the X axis. Thus, the X axis represents the value, the Y axis the number of items.</li><li>Value (Y) by Items (X) — This displays the data with items arrayed in sequence along the X axis, and the Y axis representing the value for each item. This may be appropriate for items, like characters (sites in a DNA sequence), which have a natural ordering to them.</li></ul></li><li>Grouping on X — The X axis may be grouped into categories, such that the values falling within a range on the X axis are summarized in a single bar. This submenu controls any grouping.<ul><li>Automatic — Mesquite chooses automatically how to group on the X axis</li><li>No grouping — The X axis is not grouped, and thus each item or object (each character, tree, etc.) is represented by a separate bar.</li><li>Fixed number of groups — The X axis is divided into a specified number of groups.</li><li>Fixed Group width — The X axis is divided into groups of a chosen width.</li><li>Moving Window — The X axis is divided into overlapping groups of a chosen width. This serves to smooth the chart by averaging over adjacent values. There are two parameters to set: the width of the moving window, and its increment. The increment is the offset between the starting edge of adjacent moving window positions.</li></ul></li></ul><br />
<ul><li>Analysis — In this submenu could be various analytical tools. Two standard choices are Display Mean and Percentiles..., which display the mean value and tails of the distribution.</li><li>Show Average For Group — When the chart is in the orientation Values by Items, and there is grouping along the X axis, then each bar may represent several objects (characters, etc.). This menu item allows you to choose whether the Y axis should show the sum of the values of those objects, or their average value.</li><li>Show Individual Points in Text — When the chart has grouping along the X axis, then the text view of the window by default hows sums or averages of the groups. If instead you want the text view to give all of the values for the original objects shown by the chart, then select this menu item.</li><li>Show as Bar Chart — By default, the chart is shown as a bar chart. However, if this option is turned off, the chart will be shown as a series of dots connected by a thin line.</li><li>Cumulative Mode — By default, the chart is not shown in Cumulative mode. However, by choosing items in the Cumulative submenu of the chart, Mesquite will present the cumulative values at each point:<ul><li>Off — Not cumulative</li><li>Simple Cumulative — The value of each item is the sum of the values of all previous items</li><li>Average Cumulative — The value of each item is the average of the values of all previous items</li><li>Reverse Simple Cumulative — The value of each item is the sum of the values of all following items</li><li>Reverse Average Cumulative — The value of each item is the average of the values of all following items</li></ul></li></ul><br />
<h2 id="toc9"><a name="Mesquite's Charts-Scattergrams"></a><a name="scattergrams"></a>Scattergrams</h2>
 The scattergrams available in the Analysis menu are:<br />
<ul><li>Characters — each point in the plot represents a character. These could be all of the characters of a matrix, or a series of simulated or randomized characters.</li><li>Taxa — each point in the plot represents a taxon within a taxa block.</li><li>Trees — each point in the plot represents a tree. These could be all of the trees within a tree block, or a series of simulated or randomized trees.</li><li>Nodes (Available under New Chart for Tree when a tree window is foremost) — each point in the plot represents a node in the tree of the tree window.</li></ul>These scattergrams show the values of two variables for the objects of concern. For some scattergrams, a choice is given as to whether the Same or Different calculations should be shown on the two axes. By &quot;Same&quot; is meant that the same calculation is done but with a different parameter value. For instance, if the scattegram is a Taxa scattergram, it could show the character state in continuous character 1 on the Y axis, and the state in character 2 on the X axis. These represent the same calculation (continuous character state value), differing only in the character used. By &quot;Different&quot; is meant an entirely different calculation, such as the asymmetry of a tree on the Y axis and its likelihood score for a character on the X axis.<br />
<h2 id="toc10"><a name="Mesquite's Charts-Examples"></a>Examples</h2>
 <a name="cva"></a><em>Canonical Variates Analysis</em> — For a sample of specimens measured for a series of variables, how can the measurements be combined to best distinguish predefined groups? Multivariate analyses such as these can be done using modules in the Rhetenor package. Each specimen will be treated as a taxon. A continuous data matrix of the measurements should first be entered, and the taxa be assigned to <a  href="Taxa.html#groups">groups</a>. Next:<br />
<ul><li>Select Analysis&gt;New Scattergram For&gt;Taxa</li><li>In response to the query about same or different calculations, chose Same</li><li>If asked, indicate you want to value for taxa to be Continuous States of Taxon. Otherwise, in response to the dialog box &quot;Source of characters (for Continuous States of Taxon)&quot;, ask to show secondary choices and choose &quot;Characters from Ordinations&quot;.</li><li>In the dialog box &quot;Source of matrices to be ordinated&quot;, select Stored Matrices. (If you have &quot;Use Stored Characters/Matrices by Default&quot; turned on in the Defaults submenu of the File menu, Mesquite may not ask and will simply use Stored Matrices.)</li><li>In the dialog box &quot;Ordination (for Characer Source)&quot;, select Canonical Variates Analysis. (You may need to ask for secondary choices)</li></ul><a name="varhydrophob"></a><em>Correlation between variability and hydrophobicity</em> — Do amino acid positions in proteins tend to evolve more quickly or more slowly depending on how hydrophobic they typically are? Mesquite does not yet have a direct way to estimate rates for protein characters, but we can approximately compare relative rates by comparing the number of parsimony steps for characters on a tree. First, begin with a file containing a protein data matrix and an open tree window showing a tree. Next:<br />
<ul><li>Select Analysis&gt;New Scattergram For&gt;Characters</li><li>In the dialog box &quot;Source of characters (For Characters scattergram)&quot; choose Stored Characters.</li><li>In response to the query about same or different calculations, chose Different</li><li>On the X axis we will put hydrophobicity. Thus, in the dialog box &quot;Values for X axis&quot;, ask for secondary choices and choose Protein Site Property.</li><li>In the dialog box &quot;Property of Amino Acid&quot; choose Kyte &amp; Doolittle Hydrophobicity.</li><li>In the dialog box &quot;Values for Y axis&quot;, choose Parsimony Character Steps if you see it. (Whether or not you see it depends on the setting &quot;Show Subchoices in Module Dialogs&quot; in the Defaults menu of the File menu.) If you don't see it, choose Character Value with Current Tree, then in the dialog box &quot;Value to calculate for character&quot; chose Parsimony Character Steps. If Mesquite asks, indicate you want Current Parsimony Models to be used in the parsimony calculations.</li></ul><br />
The following scattergram shows the results of such an analysis, with two additions. First, the dots are colored by a third variable, the mean molecular weight of amino acids at that site. This can be done by selecting Color by Third Value from the Color menu, and in the dialog box &quot;Values by which to color spots in the scattergram&quot; asking for secondary choices.<br />
<div style="text-align: center"><img src="files/stepsVsHydro.jpg" alt="stepsVsHydro.jpg" title="stepsVsHydro.jpg" /></div>Second, the analysis assistant Scattergram Regression Diagnostics (part of the <a  href="http://mesquiteproject.org/pdap_mesquite/index.html" rel="nofollow">PDAP</a> package) is in use, and shows the regression line. The text view of the window shows the details of the analysis. The correlation is highly significant.<br />
<h3 id="toc11"><a name="Mesquite's Charts-Examples-Calculating and formatting options"></a><a name="optionsS"></a>Calculating and formatting options</h3>
 The following menu items can be found in the Scattergram menu:<br />
<ul><li>Marker Size — allows you to choose the size of the dots of the scatterplot</li><li>Analysis — In this submenu could be various analytical tools. For instance, if <a  href="http://mesquiteproject.org/pdap_mesquite/index.html" rel="nofollow">PDAP</a> is installed, you can request regression and correlation analysis underScattergram&gt;Analysis&gt;.</li><li>Special Effects<ul><li>Show Density — this shades the background of the chart according to the density of points. To see this, you may want to turn off &quot;Show dots&quot; (see below). Here is an example:</li></ul></li></ul><br />
<div style="text-align: center"><img src="files/depthVsImbalance.jpg" alt="depthVsImbalance.jpg" title="depthVsImbalance.jpg" /></div><ul><ul><li>Join the Dots, Join Last to First, Thick Joints — These control whether and how a line is drawn between dots of the scattergram. These options are used to indicate molecular structure as in the cytochrome B example in Mesquite_Folder/examples/Molecular/06-cytochromeB.nex</li><li>Show dots — determines whether or not the dots representing objects in the scatterplot are drawn individually</li></ul></ul>In addition, if the scattergram is of characters, a Color menu will appear that allows you to color the dots according to a third value of the characters.
<!-- InstanceEndEditable -->

    
    
    </div>
	<!-- This clearing element should immediately follow the #mainContent div in order to force the #container div to contain all child floats --><br class="clearfloat" />
  <div id="footer">
    <p> ©2023 Wayne P. Maddison &amp;  David R. Maddison </p>
  <!-- end #footer --></div>
<!-- end #container --></div>

<script type="text/javascript">
<!--


var OverviewOfMesquitePanel = null;
var GettingStartedPanel = null;
var BasicMesquiteOperationPanel = null;
var TaxaTreesCharactersPanel = null;
var AnalysesPanel = null;
var WorkflowsPanel = null;
var GettingHelpPanel = null;
var TechnicalDetailsPanel = null;
var HistoryPanel = null;
var PublishingResultsPanel = null;

if (qsParm['BasicMesquiteOperationPanel']=='open')
 	BasicMesquiteOperationPanel = new Spry.Widget.CollapsiblePanel("BasicMesquiteOperationPanel", {contentIsOpen: true});
else
 	BasicMesquiteOperationPanel = new Spry.Widget.CollapsiblePanel("BasicMesquiteOperationPanel", {contentIsOpen: false});
	
if (qsParm['OverviewOfMesquitePanel']=='open')
 	OverviewOfMesquitePanel = new Spry.Widget.CollapsiblePanel("OverviewOfMesquitePanel", {contentIsOpen: true});
else
 	OverviewOfMesquitePanel = new Spry.Widget.CollapsiblePanel("OverviewOfMesquitePanel", {contentIsOpen: false});
	
if (qsParm['GettingStartedPanel']=='open')
 	GettingStartedPanel = new Spry.Widget.CollapsiblePanel("GettingStartedPanel", {contentIsOpen: true});
else
 	GettingStartedPanel = new Spry.Widget.CollapsiblePanel("GettingStartedPanel", {contentIsOpen: false});

if (qsParm['TaxaTreesCharactersPanel']=='open')
 	TaxaTreesCharactersPanel = new Spry.Widget.CollapsiblePanel("TaxaTreesCharactersPanel", {contentIsOpen: true});
else
 	TaxaTreesCharactersPanel = new Spry.Widget.CollapsiblePanel("TaxaTreesCharactersPanel", {contentIsOpen: false});

if (qsParm['AnalysesPanel']=='open')
 	AnalysesPanel = new Spry.Widget.CollapsiblePanel("AnalysesPanel", {contentIsOpen: true});
else
 	AnalysesPanel = new Spry.Widget.CollapsiblePanel("AnalysesPanel", {contentIsOpen: false});

if (qsParm['WorkflowsPanel']=='open')
 	WorkflowsPanel = new Spry.Widget.CollapsiblePanel("WorkflowsPanel", {contentIsOpen: true});
else
 	WorkflowsPanel = new Spry.Widget.CollapsiblePanel("WorkflowsPanel", {contentIsOpen: false});

if (qsParm['GettingHelpPanel']=='open')
 	GettingHelpPanel = new Spry.Widget.CollapsiblePanel("GettingHelpPanel", {contentIsOpen: true});
else
 	GettingHelpPanel = new Spry.Widget.CollapsiblePanel("GettingHelpPanel", {contentIsOpen: false});
    
if (qsParm['TechnicalDetailsPanel']=='open')
 	TechnicalDetailsPanel = new Spry.Widget.CollapsiblePanel("TechnicalDetailsPanel", {contentIsOpen: true});
else
 	TechnicalDetailsPanel = new Spry.Widget.CollapsiblePanel("TechnicalDetailsPanel", {contentIsOpen: false});

if (qsParm['HistoryPanel']=='open')
 	HistoryPanel = new Spry.Widget.CollapsiblePanel("HistoryPanel", {contentIsOpen: true});
else
 	HistoryPanel = new Spry.Widget.CollapsiblePanel("HistoryPanel", {contentIsOpen: false});
if (qsParm['PublishingResultsPanel']=='open')
 	PublishingResultsPanel = new Spry.Widget.CollapsiblePanel("PublishingResultsPanel", {contentIsOpen: true});
else
 	PublishingResultsPanel = new Spry.Widget.CollapsiblePanel("PublishingResultsPanel", {contentIsOpen: false});


//-->
</script>
</body>
<!-- InstanceEnd --></html>
